<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>Main</title>
	<link href="../Public/style/skin.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../Public/js/jquery.js"></script>
	<script type="text/javascript" src="../Public/js/dtree.js"></script>
</head>
<body>
<div class="location">角色编辑</div>
提示: 带<span class="red_font">*</span>的项目为必填信息.
<form action="__URL__/update" method="post" name="eForm">
<table class="bd_c_1" cellpadding="0" cellspacing="0">
		<tr class='even'>
			<td>角色名称：<span class="red_font">*</span></td>
			<td><input type="text" name="name" class="ipt_m" value="{$obj.name}" size="18"/></td>
			<td></td>
		</tr>
		<tr>
			<td>角色描述：</td>
			<td><input type="text" name="note" class="ipt_m" value="{$obj.note}" size="18" width="30"/></td>
			<td></td>
		</tr>
		<tr class='even'>
			<td colspan="3">
				<div class="dtree">
					<script type="text/javascript">
					d = new dTree('d','../Public/images');
					d.add(0,-1,'游戏后台管理');
					<foreach name="rlist" item="vo">
						str = "{$vo.caption}<input type='checkbox' name='role[{$vo.id}]' <gt name='vo.own.s' value='0'>checked</gt> value=''/>";
						<neq name="vo.node_url" value="">
							str+= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【增<input type='checkbox' name='role[{$vo.id}][]' value='1' <eq name='vo.own.c' value='1'>checked</eq>/>";
							str+= "&nbsp;&nbsp;删<input type='checkbox' name='role[{$vo.id}][]' value='3' <eq name='vo.own.u' value='1'>checked</eq>/>";
							str+= "&nbsp;&nbsp;改<input type='checkbox' name='role[{$vo.id}][]' value='2' <eq name='vo.own.d' value='1'>checked</eq>/>】";
						</neq>
						d.add({$vo.id},{$vo.parent_id},str);
					</foreach>
					document.write(d);
					</script>
					</div>
			</td>
		</tr>
		<tr class='even'>
			<td colspan="3">
				<input type="hidden" name="id" value="{$obj.id}" />
				 <eq name="coption.u" value="1"><input type="submit" value="完成" class="buttons_a"/>&nbsp;&nbsp;</eq>
				<input class="buttons_a" type="button" onclick="history.go(-1);" value="取消" />
			</td>
		</tr>
	</table>
</form>
</body>
</html>
